import request from '@/utils/request';

//查询工单类型列表
export function listTaskType(query) {
  return request({
    url: '/manage/taskType/list',
    method: 'get',
    params: query
  })
}

//查询工单类型详细
export function getTaskType(id) {
  return request({
    url: '/manage/taskType/' + id,
    method: 'get'
  })
}

//新增工单类型
export function addTaskType(data) {
  return request({
    url: '/manage/taskType',
    method: 'post',
    data: data
  })
}

//修改工单类型
export function updateTaskType(data) {
  return request({
    url: '/manage/taskType',
    method: 'put',
    data: data
  })
}

//删除工单类型
export function delTaskType(id) {
  return request({
    url: '/manage/taskType/' + id,
    method: 'delete'
  })
}

//取消工单
export function cancelTaskType(data) {
  return request({
    url: '/manage/task/cancel',
    method: 'put',
    data: data
  })
}

